package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ProductAttrValueSearchRequest", description = "新增门店、仓库调货单-选择商品规格请求对象")
public class ProductAttrValueSearchRequest extends PageParamRequest {

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "平台分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "转出类型(1仓库  2门店)")
    @NotNull(message = "转出类型不能为空")
    @Range(min = 1, max = 2, message = "转出类型只能为1~2")
    private Integer transferOutType;

    @ApiModelProperty(value = "转出门店id(转出仓库id)")
    @NotNull(message = "转出门店id不能为空")
    private Integer transferOutStoreId;

    @ApiModelProperty(value = "转入类型(1仓库  2门店)")
    @NotNull(message = "转入类型不能为空")
    @Range(min = 1, max = 2, message = "转入类型只能为1~2")
    private Integer transferInType;

    @ApiModelProperty(value = "转入门店id(转入仓库id)")
    @NotNull(message = "转入门店id不能为空")
    private Integer transferInStoreId;

    @ApiModelProperty(value = "商品条码")
    private String barCode;
}
